package com.zxq.common.utils.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum AlarmLevel {

    NO_ALARM("NO_ALARM", "不报警"),
    LEVEL_P0("P0", "P0级别报警"),
    LEVEL_P1("P1", "P1级别报警"),
    LEVEL_P2("P2", "P2级别报警"),
    LEVEL_P3("P3", "P3级别报警"),
    LEVEL_P9("P9", "P9级别报警"),
    ;

    private final String level;
    private final String desc;

    public static boolean needAlarm(AlarmLevel alarmLevel) {
        return alarmLevel != NO_ALARM;
    }


}
